var fs = require('fs');
var base64 = require("Base64");
fs.readFile('./rules','utf8',function(err,text){
  var newText = base64.btoa(text);
  fs.writeFile('autoproxy.txt', newText, (err) => {
    if (err) throw err;
    console.log('文件已被保存');
  });
})
